import request from '@/utils/request'

export function getTags() {
  return request({
    url: '/tag/getTag',
    method: 'get'
  })
}
// 添加标签
export function addTags(data) {
  return request({
    url: '/tag/addTag',
    method: 'post',
    data: data
  })
}

export function addBook(data) {
  return request({
    url: '/tag/addBook',
    method: 'post',
    data: data
  })
}
export function editBook(data) {
  return request({
    url: '/tag/editBook',
    method: 'post',
    data: data
  })
}
export function getBook(data) {
  return request({
    url: '/tag/getBook',
    method: 'post',
    data: data
  })
}

export function deleteBookApi(data) {
  return request({
    url: '/tag/delBook',
    method: 'get',
    params: data
  })
}
